<template>
	<view class="content">
		<image class="logo" src="@/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
			<text class="text">
				{{text}}
			</text>
		</view>
		<view class="btn" @click="goSign">
			开启发现之旅
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '武品汇',
				text:'玩直播看比赛就来武品汇APP'
			}
		},
		onLoad() {
			if(uni.getStorageSync('fistrOpen')){
				uni.redirectTo({
					url:'/pages/index/telLogin'
				})
			}
		},
		methods: {
			goSign(){
				uni.setStorageSync('fistrOpen','true')
				uni.redirectTo({
					url:'/pages/index/telLogin'
				})
			}
		}
	}
</script>

<style>
	.content {
		width: 750rpx;
		height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
		opacity: 0.82;
		background-image: url('@/static/indexBc.png');
		background-repeat: no-repeat;
		background-size: 100% 100%;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 400rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}
	.btn{
		position: absolute;
		bottom: 200rpx;
		width: 400rpx;
		height: 100rpx;
		line-height: 100rpx;
		opacity: 0.55;
		border-radius: 8rpx;
		background-color: rgba(12, 19, 50, 100);
		color: rgba(255, 255, 255, 100);
		font-size: 32rpx;
		text-align: center;
		font-family: Arial;
		border: 2rpx solid rgba(12, 19, 50, 100);
	}
	.text-area {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.title {
		font-size: 44rpx;
		color: #fff;
	}
	.text{
		margin-top: 52rpx;
		opacity: 0.47;
		color: rgba(255, 255, 255, 100);
		font-size: 14px;
		font-family: Roboto-regular;
	}
</style>
